import VueRouter from 'vue-router'
import homecontainer from './components/tabble/HomeContainer.vue'
import membercontainer from './components/tabble/MemberContainer.vue'
import shopcarcontainer from './components/tabble/ShopcarContaner.vue'
import serachcontainer from './components/tabble/SearchContaner.vue'



// 3. 创建路由对象
var router = new VueRouter({
  routes: [
    {path:'/',redirect:'/home' },
    {path:'/home',component:homecontainer},
    {path:'/member',component:membercontainer},
    {path:'/shopcar',component:shopcarcontainer},
    {path:'/search',component:serachcontainer}
    
  ],
  linkActiveClass:'mui-active'
      
})

// 把路由对象暴露出去
export default router